package com.test.demo1;

public class Proxy implements Rent{
    private Host host;

    public Proxy() {
    }

    public Proxy(Host host) {
        this.host = host;
    }

    @Override
    public void rent() {
        seeHouse();
        host.rent();
        hetong();
        free();
    }
    public void seeHouse(){
        System.out.println("中介带你看房！！");
    }
    public void free(){
        System.out.println("中介收中介费！！");
    }
    public void hetong(){
        System.out.println("中介签租赁合同！！");
    }

}
